# coding=utf8
# print "robot----in----"

from werobot import WeRoBot
robot = WeRoBot(enable_session=True,token='robot',APP_ID='wx83517600a319ca2d',APP_SECRET='ca999b954acfae4fb529e5d9e11de162')
client = robot.client
# client.create_menu({"button":[{"type": "click","name": "music","key": "music"}]})

@robot.handler
def hello(message):
    #print "hello"
    return 'Hello world'

@robot.text
def echo(message):
    #print "echo"
    return message.content

@robot.image
def img(message):
    #print "img"
    return message.img

# print "robot----out----"

